package com.tolls;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class ScheduledTest {

    //定时器配置
   @Scheduled(cron = "*/5 * * * * ?") //五秒
    public void myTest(){
       //System.out.println("ffffffffff");
   }
}
